package fr.adfm.paiement.data;

public class ProcessContext {
	
    private PaiementManagementRequest input;
	private PaiementManagementResponse output;
	
	private Exception exception;
	
	public class ContextSE {
		public boolean isStockOK;
	}
	private ContextSE contextSE = new ContextSE();
	
	public class ContextSP {
		public String noTransactionPaiement;
		public String infoRedirectionSitePaiement;
		public String lastPollingState;
	}
	private ContextSP contextSP = new ContextSP();

	
	public ProcessContext(PaiementManagementRequest request)
	{
		input = request;
		output = new PaiementManagementResponse();
		output.setEtatFinal("INIT");
		output.setIdBonCommande(input.getIdBonCommande());
	}

	public PaiementManagementRequest getInput() {
		return input;
	}

	public PaiementManagementResponse getOutput() {
		return output;
	}
	

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public ContextSE getContextSE() {
		return contextSE;
	}

	public ContextSP getContextSP() {
		return contextSP;
	}
	

}
